-- GENERATED SPELL FOR [Volchan] --


function spell0_10119(pUnit, Event) --@Fire Nova,Self--
pUnit:FullCastSpellOnTarget(12470,pUnit)
pUnit:RegisterEvent('Sorts_10119', 2000, 1)
end

function spell1_10119(pUnit, Event) --@Flamecrack,Self--
pUnit:FullCastSpellOnTarget(15743,pUnit)
pUnit:RegisterEvent('Sorts_10119', 2500, 1)
end

function Sorts_10119(pUnit, Event)
local choix_sorts_10119 = math.random(0, 1)
if choix_sorts_10119 == 0 then
pUnit:RegisterEvent('spell0_10119', 1, 1)
end
if choix_sorts_10119 == 1 then
pUnit:RegisterEvent('spell1_10119', 1, 1)
end
end

function mob10119_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_10119', math.random(1500, 3000), 1)
end

function mob10119_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10119_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10119_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(10119, 1, 'mob10119_Action')
RegisterUnitEvent(10119, 2, 'mob10119_Leave')
RegisterUnitEvent(10119, 3, 'mob10119_Kill')
RegisterUnitEvent(10119, 4, 'mob10119_Die')
